package com.neasho.neashoadminv1.infrastructure.domain.base

import jakarta.validation.constraints.NotNull
import org.hibernate.validator.constraints.Range

class BasePageSpec {
    @NotNull(message = "当前页码不能为空")
    @Range(min = 1, message = "当前页码不能小于1")
    val pageNumber:Int = 1
    @NotNull(message = "每页条数不能为空")
    @Range(min = 1, max = 100, message = "每页条数不能小于1或大于100")
    val pageSize:Int = 10
}